package space.misiro.ledgers.keycloak.client.api

import space.misiro.ledgers.middleware.api.domain.um.BearerTokenTO

interface KeycloakTokenService {
    fun login(username: String, password: String): BearerTokenTO
    fun exchangeToken(oldToken: String, timeToLive: Int, scope: String): BearerTokenTO
    fun validate(token: String): BearerTokenTO
    fun refreshToken(refreshToken: String): BearerTokenTO
}